/**
 * @Auther: ZZX
 * @Date: 2024/7/22-07-22-21:38
 * @Description: PACKAGE_NAME
 */
public class Demo4变量的使用 {
    public static void main(String[] args) {
        //byte
        byte num1 = 100;
        System.out.println(num1);

        //short
        short num2 = 1000;
        num2 = 1001;
        System.out.println(num2);

        //int 整数的默认类型
        int num3 = 1000;
        System.out.println(num3);

        //long 定义long型的变量后面加个L/l
        long num4 = 10L;
        System.out.println(num4);

        //float 定义float型的变量后面加了F/f
        float num5 = 2.5f;
        System.out.println(num5);

        //double 小数的默认类型
        double num6 = 2.5;
        System.out.println(num6);

        //char
        char num7 = 'A';
        System.out.println(num7);

        //boolean
        boolean num8 = true;
        boolean num9 = false;
        num8 = num9;
        System.out.println(num8);

        //String
        String name = "zzx";
        System.out.println(name);
    }
}
